﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Approve"
	xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Approve.ProjectApproveView"
	d:DesignWidth="800" d:DesignHeight="700">
	<UserControl.Resources>
		<local:ProjectApproveViewModel x:Key="ProjectApproveViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource ProjectApproveViewModelDataSource}}">
		<i:Interaction.Triggers>
			<i:EventTrigger>
				<ei:CallMethodAction TargetObject="{Binding Mode=OneWay}" MethodName="OnLoad"/>
			</i:EventTrigger>
		</i:Interaction.Triggers>
		<ScrollViewer VerticalScrollBarVisibility="Auto">
			<StackPanel VerticalAlignment="Top">
				<Border BorderBrush="Black" BorderThickness="1" Height="200" Visibility="{Binding Approve1, Converter={StaticResource NotNull2VisibilityConverter}}">
					<Grid Margin="0">
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="160"/>
							<ColumnDefinition Width="0.5*"/>
							<ColumnDefinition Width="0.5*"/>
						</Grid.ColumnDefinitions>
						<TextBlock TextWrapping="Wrap" Text="一审" FontSize="24" HorizontalAlignment="Center" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="审核" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="复核" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve1.Step1Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve1.Step2Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve1.Step3Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve1.Step4Content, Mode=TwoWay}"/>
						<TextBlock Margin="8,47,0,36" Grid.Row="1" TextWrapping="Wrap" Text="审核人:" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
						<ComboBox ItemsSource="{Binding EngineerCollection, Source={StaticResource ListsResource}}" Margin="8,0,50,8" Grid.Row="1" VerticalAlignment="Bottom" DisplayMemberPath="StfName" SelectedItem="{Binding Approver1, Mode=TwoWay}"/>
						<Path Grid.Column="1" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,-1,0,0" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<HyperlinkButton Command="{Binding SaveApprove1Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove1Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove1Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<HyperlinkButton Command="{Binding SaveApprove1Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<Path Grid.Column="2" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,0,0,-1" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<Path Grid.ColumnSpan="2" Grid.Column="1" Data="M161,99 L788,99" Fill="#FFF4F4F5" Height="1" Margin="1,0,-1,0" Grid.Row="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" VerticalAlignment="Top"/>
						<HyperlinkButton Content="提交" HorizontalAlignment="Right" Margin="0,0,20,8" VerticalAlignment="Bottom" Grid.Row="1" Command="{Binding UpdateApprover1Command}"/>
					</Grid>
				</Border>
				<Border BorderBrush="Black" BorderThickness="1" Height="200" Margin="0,16,0,0" Visibility="{Binding Approve2, Converter={StaticResource NotNull2VisibilityConverter}}">
					<Grid Margin="0">
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="160"/>
							<ColumnDefinition Width="0.5*"/>
							<ColumnDefinition Width="0.5*"/>
						</Grid.ColumnDefinitions>
						<TextBlock TextWrapping="Wrap" Text="二审" FontSize="24" HorizontalAlignment="Center" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="审核" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="复核" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve2.Step1Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve2.Step2Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve2.Step3Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve2.Step4Content, Mode=TwoWay}"/>
						<TextBlock Margin="8,47,0,36" Grid.Row="1" TextWrapping="Wrap" Text="审核人:" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
						<ComboBox ItemsSource="{Binding ApproverCollection, Source={StaticResource ListsResource}}" Margin="8,0,50,8" Grid.Row="1" VerticalAlignment="Bottom" DisplayMemberPath="StfName" SelectedItem="{Binding Approver2, Mode=TwoWay}"/>
						<Path Grid.Column="1" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,-1,0,0" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<HyperlinkButton Command="{Binding SaveApprove2Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove2Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove2Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<HyperlinkButton Command="{Binding SaveApprove2Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<Path Grid.Column="2" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,0,0,-1" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<Path Grid.ColumnSpan="2" Grid.Column="1" Data="M161,99 L788,99" Fill="#FFF4F4F5" Height="1" Margin="1,0,-1,0" Grid.Row="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" VerticalAlignment="Top"/>
						<HyperlinkButton Content="提交" HorizontalAlignment="Right" Margin="0,0,20,8" VerticalAlignment="Bottom" Grid.Row="1" Command="{Binding UpdateApprover2Command}"/>
					</Grid>
				</Border>
				<Border BorderBrush="Black" BorderThickness="1" Height="200" Margin="0,16,0,0" Visibility="{Binding Approve3, Converter={StaticResource NotNull2VisibilityConverter}}">
					<Grid Margin="0">
						<Grid.RowDefinitions>
							<RowDefinition Height="0.5*"/>
							<RowDefinition Height="0.5*"/>
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="160"/>
							<ColumnDefinition Width="0.5*"/>
							<ColumnDefinition Width="0.5*"/>
						</Grid.ColumnDefinitions>
						<TextBlock TextWrapping="Wrap" Text="三审" FontSize="24" HorizontalAlignment="Center" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="审核" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top"/>
						<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="复核" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBlock Grid.Column="2" HorizontalAlignment="Left" Margin="8,8,0,0" TextWrapping="Wrap" Text="修改意见" VerticalAlignment="Top" Grid.Row="1"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve3.Step1Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" AcceptsReturn="True" Text="{Binding Approve3.Step2Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="1" Margin="42,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve3.Step3Content, Mode=TwoWay}"/>
						<TextBox Grid.Column="2" Margin="56,8,52,8" TextWrapping="Wrap" Grid.Row="1" AcceptsReturn="True" Text="{Binding Approve3.Step4Content, Mode=TwoWay}"/>
						<TextBlock Margin="8,47,0,36" Grid.Row="1" TextWrapping="Wrap" Text="审核人:" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
						<ComboBox ItemsSource="{Binding ApproverCollection, Source={StaticResource ListsResource}}" Margin="8,0,50,8" Grid.Row="1" VerticalAlignment="Bottom" DisplayMemberPath="StfName" SelectedItem="{Binding Approver3, Mode=TwoWay}"/>
						<Path Grid.Column="1" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,-1,0,0" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<HyperlinkButton Command="{Binding SaveApprove3Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove3Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40"/>
						<HyperlinkButton Command="{Binding SaveApprove3Command}" Content="提交" Grid.Column="1" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<HyperlinkButton Command="{Binding SaveApprove3Command}" Content="提交" Grid.Column="2" HorizontalAlignment="Right" Margin="0,0,8,8" VerticalAlignment="Bottom" Width="40" Grid.Row="1"/>
						<Path Grid.Column="2" Data="M120,0 L120,196" Fill="#FFF4F4F5" HorizontalAlignment="Left" Margin="0,0,0,-1" Grid.RowSpan="2" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" Width="1"/>
						<Path Grid.ColumnSpan="2" Grid.Column="1" Data="M161,99 L788,99" Fill="#FFF4F4F5" Height="1" Margin="1,0,-1,0" Grid.Row="1" Stretch="Fill" Stroke="Black" UseLayoutRounding="False" VerticalAlignment="Top"/>
						<HyperlinkButton Content="提交" HorizontalAlignment="Right" Margin="0,0,20,8" VerticalAlignment="Bottom" Grid.Row="1" Command="{Binding UpdateApprover3Command}"/>
					</Grid>
				</Border>
			</StackPanel>
		</ScrollViewer>
	</Grid>
</UserControl>
